package com.larry.spark.rdd.instance

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

object Spark02_RDD_Instance_File {

  def main(args: Array[String]): Unit = {
    //TODO  使用spark

    val conf = new SparkConf().setMaster("local").setAppName("WordCount")
    val sc = new SparkContext(conf)

    //从磁盘、文件中创建RDD
    //相对路径、绝对路径、通配符路径、文件夹目录、HDFS
    val rdd:RDD[String] = sc.textFile("")

    val value = sc.wholeTextFiles("")


    sc.stop()
  }


}
